package com.code.adapter;

/**
 * <p>采用继承的插座适配器</p>
 *
 * @author hwf
 * @version 1.0
 * @date 2021/12/13 22:37
 */
public class TwoJackExtendsAdapter extends GBTwoJack implements ThreeJack {

    @Override
    public void powerWithThree() {
        System.out.println("借助继承适配器");
        this.powerWithTwo();
    }
}
